<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//return [
//    '__alias__' =>  [
//        'hushichuguo/meiguo'  =>  '/index/lists/index/id/1',
//    ],
//];


//return [
//    '__pattern__' => [
//        'name' => '\w+',
//    ],
//
//];
use think\Route;
//Route::bind('index');
// 注册路由到index模块的News控制器的read操作
//Route::get('hushichuguo/meiguo','/index/lists/index/id/1');

Route::rule('/','index');
Route::rule('error','index/error_message');
Route::get(':id','article/index/',[],['id'=>'\d+']);
Route::rule('tag/:name','tag/search/');
Route::rule('tag','tag/index/');
Route::rule('zhuanti/:name','zhuanti/lists/');
Route::rule('zhuanti/:name/:page/:idd','zhuanti/lists/');
Route::rule('zhuanti','zhuanti/index/'); 
Route::rule('search/:page/:id','search/index/');
Route::rule('search','search/index/'); 


Route::get(':name/:page/:id','lists/index/',[],['page'=>'page']);
Route::get(':name/:name/:page/:id','lists/index/',[],['page'=>'page']);
Route::rule(':name/:name','lists/index/');

Route::rule(':name','lists/index/');
Route::rule('zhuanti/:name/:name/:id','zhuanti/lists/');


